package com.dm.decorator.demo01;

/**
 * 滚动装饰器
 * @author Administrator
 *
 */
public class ScrollDecorator extends Decorator{

	public int scrollPosition;
	

	public ScrollDecorator(VisualComponent visualComponent){
		super(visualComponent);
	}
	
	public void srcollTo(){
		System.out.println("ScrollDecorator.srcollTo()");
	}
	
	@Override
	public void draw() {
		visualComponent.draw();
		this.srcollTo();
		
	}

}
